package com.example.calvinwang.library;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Matrix;
import android.graphics.RectF;
import android.util.AttributeSet;
import android.view.GestureDetector;
import android.view.View;
import android.widget.ImageView;

/**
 * Created by Calvin.Wang on 10/30/2014.
 */
public class PhotoView extends ImageView implements IPhotoView {
    public PhotoView(Context context) {
        super(context);
    }

    public PhotoView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public PhotoView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }

    @Override
    public boolean canZoom() {
        return false;
    }

    @Override
    public RectF getDisplayRect() {
        return null;
    }

    @Override
    public boolean setDisplayMatrix(Matrix finalMatrix) {
        return false;
    }

    @Override
    public Matrix getDisplayMatrix() {
        return null;
    }

    @Override
    public float getMinScale() {
        return 0;
    }

    @Override
    public void setMinScale(float minScale) {

    }

    @Override
    public float getMinimumScale() {
        return 0;
    }

    @Override
    public void setMinimumScale(float minimumScale) {

    }

    @Override
    public float getMidScale() {
        return 0;
    }

    @Override
    public void setMidScale(float midScale) {

    }

    @Override
    public float getMediumScale() {
        return 0;
    }

    @Override
    public void setMediumScale(float mediumScale) {

    }

    @Override
    public float getMaxScale() {
        return 0;
    }

    @Override
    public void setMaxScale(float maxScale) {

    }

    @Override
    public float getMaximumScale() {
        return 0;
    }

    @Override
    public void setMaximumScale(float maximumScale) {

    }

    @Override
    public float getScale() {
        return 0;
    }

    @Override
    public void setScale(float scale) {

    }

    @Override
    public ImageView.ScaleType getScaleType() {
        return null;
    }

    @Override
    public void setScaleType(ImageView.ScaleType scaleType) {

    }

    @Override
    public void onFling(float startX, float startY, float velocityX, float velocityY) {

    }

    @Override
    public void onScale(float scaleFactor, float focusX, float focusY) {

    }

    @Override
    public void setAllowParentInterceptOnEdge(boolean allow) {

    }

    @Override
    public void setOnLongClickListener(View.OnLongClickListener listener) {

    }

    @Override
    public void setOnMatrixChangeListener(PhotoViewAttacher.OnMatrixChangedListener listener) {

    }

    @Override
    public PhotoViewAttacher.OnPhotoTapListener getOnPhotoTapListener() {
        return null;
    }

    @Override
    public void setOnPhotoTapListener(PhotoViewAttacher.OnPhotoTapListener listener) {

    }

    /**
     * Enables rotation via PhotoView internal functions.
     *
     * @param rotationDegree - Degree to rotate PhotoView to, should be in range 0 to 360
     */
    @Override
    public void setRotationTo(float rotationDegree) {

    }

    /**
     * Enables rotation via PhotoView internal functions.
     *
     * @param rotationDegree - Degree to rotate PhotoView by, should be in range 0 to 360
     */
    @Override
    public void setRotationBy(float rotationDegree) {

    }

    @Override
    public PhotoViewAttacher.OnViewTapListener getOnViewTapListener() {
        return null;
    }

    /**
     * Register a callback to be invoked when the View is tapped with a single tap.
     *
     * @param listener - Listener to be registered.
     */
    @Override
    public void setOnViewTapListener(PhotoViewAttacher.OnViewTapListener listener) {

    }

    /**
     * Changes the current scale to the specified value.
     *
     * @param scale   - Value to scale to
     * @param animate - Whether to animate the scale
     */
    @Override
    public void setScale(float scale, boolean animate) {

    }

    /**
     * Changes the current scale to the specified value, around the given focal point.
     *
     * @param scale   - Value to scale to
     * @param focalX  - X Focus Point
     * @param focalY  - Y Focus Point
     * @param animate - Whether to animate the scale
     */
    @Override
    public void setScale(float scale, float focalX, float focalY, boolean animate) {

    }

    /**
     * Allows you to enable/disable the zoom functionality on the ImageView. When disable the
     * ImageView reverts to using the FIT_CENTER matrix.
     *
     * @param zoomable - Whether the zoom functionality is enabled.
     */
    @Override
    public void setZoomable(boolean zoomable) {

    }

    /**
     * Enables rotation via PhotoView internal functions. Name is chosen so it won't collide with
     * View.setRotation(float) in API since 11
     *
     * @param rotationDegree - Degree to rotate PhotoView to, should be in range 0 to 360
     * @deprecated use {@link #setRotationTo(float)}
     */
    @Override
    public void setPhotoViewRotation(float rotationDegree) {

    }

    /**
     * Extracts currently visible area to Bitmap object, if there is no image loaded yet or the
     * ImageView is already destroyed, returns {@code null}
     *
     * @return currently visible area as bitmap or null
     */
    @Override
    public Bitmap getVisibleRectangleBitmap() {
        return null;
    }

    @Override
    public void setZoomTransitionDuration(int milliseconds) {

    }

    /**
     * Will return instance of IPhotoView (eg. PhotoViewAttacher), can be used to provide better
     * integration
     *
     * @return IPhotoView implementation instance if available, null if not
     */
    @Override
    public IPhotoView getIPhotoViewImplementation() {
        return null;
    }

    @Override
    public void setOnDoubleTapListener(GestureDetector.OnDoubleTapListener newOnDoubleTapListener) {

    }
}
